package pattern.proxy

/**
 * Created by 焕滨 on 2015/9/20.
 */
class Proxy extends ISubject{

  private val realSubject = new RealSubject
  override def method1(): Unit = {
    realSubject.method1()
  }

  override def method2(): Unit = {
    realSubject.method2()
  }
}
